package com.ruyuan2020.im.xxx.third;

import com.ruyuan2020.im.xxx.third.service.HelloService;
import com.ruyuan2020.im.xxx.third.service.HelloServiceImpl;

public class Test {
    public static void main(String[] args) {
        HelloService target = new HelloServiceImpl();
        Interceptor transactionInterceptor = new TransactionInterceptor();
        HelloService targetProxy = (HelloService) HWInvocationHandler.wrap(target,transactionInterceptor);
        targetProxy.sayHello();
    }
}
